package cn.easyutil.util.platform.wechat.pay.bean;

import java.io.Serializable;

public class WeChatPayBean implements Serializable{
	private static final long serialVersionUID = 1L;
	/** 微信参数配置*/
    private String appid ;
    /**注意这个key必须从https://pay.weixin.qq.com/index.php/core/cert/api_cert，重新生成，一次生成后不宜修改*/
    private String api_key ;
    /**商户号微信注册的时候会发送到账户*/
    private  String mch_id ;
    private String openid;
    
    private String timestamp;
    /** 自定义字段，微信回调中原样返回*/
    private String attach;
	public String getAppid() {
		return appid;
	}

	public WeChatPayBean setAppid(String appid) {
		this.appid = appid;
		return this;
	}

	public String getApi_key() {
		return api_key;
	}

	public WeChatPayBean setApi_key(String api_key) {
		this.api_key = api_key;
		return this;
	}

	public String getMch_id() {
		return mch_id;
	}

	public WeChatPayBean setMch_id(String mch_id) {
		this.mch_id = mch_id;
		return this;
	}
	
	public WeChatPayBean(){}
	
	public WeChatPayBean(String appid,String api_key,String mch_id){
		this.appid = appid;
		this.api_key = api_key;
		this.mch_id = mch_id;
	}

	public String getOpenid() {
		return openid;
	}

	public WeChatPayBean setOpenid(String openid) {
		this.openid = openid;
		return this;
	}

	public String getTimestamp() {
		return timestamp;
	}

	public WeChatPayBean setTimestamp(String timestamp) {
		this.timestamp = timestamp;
		return this;
	}

	public String getAttach() {
		return attach;
	}

	public void setAttach(String attach) {
		this.attach = attach;
	}
	
	
}
